/**
 * This class represents the SumHash Method
 * @author Matthew Dye
 *
 * @param <K>
 */
public class SumHash implements HashFunction<String>{
	/**
	 * This method will add each character value together
	 * @param Key String to be hashed
	 * @return index 
	 */
	@Override
	public int hash(String key) {
		int sum = 0;
		for(int i = 0; i<key.length(); i++)
		{
			sum = sum + (int)key.charAt(i);
		}
		return sum;
	}

}
